/*
 * Copyright (c) 2006, 2022, webrx.cn All rights reserved.
 *
 */
package cn;

import cn.webrx.Db;
import cn.webrx.SpringConfig;
import cn.webrx.entity.User;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.test.context.junit.jupiter.SpringJUnitConfig;

/**
 * <p>Project: spring2022 - AppDemo
 * <p>Powered by webrx On 2022-03-18 11:32:27
 * <p>Created by IntelliJ IDEA
 *
 * @author webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
@SpringJUnitConfig(SpringConfig.class)
public class AppDemo {
    @Autowired
    ApplicationContext ctx;

    @Autowired
    User user;
    @Test
    public void t2(){
      user.show();
    }


    @Test
    public void t1(){
        for (String n : ctx.getBeanDefinitionNames()) {
            System.out.println(n);
        }
    }
}
